<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?php include_http_metas() ?>
<?php include_metas() ?>
<?php include_title() ?>

<link rel="shortcut icon" href="/favicon.ico" />
<script src="http://api.mapabc.com/fmp/v1.0/js/fmp.js?key=d9026b1f289933f5c6312d30df7b9841a71a3e2eb5266aacb8babbd753b1595d3aa8631ddbb4656e" type="text/javascript"></script>
<script src="<?php echo SITE_URL?>js/jquery.js" type="text/javascript"></script>

<link href="<?php echo SITE_URL?>img/made/zuofa.css" rel="stylesheet" type="text/css" />
<link href="<?php echo SITE_URL?>img/ggCSS.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
function search(){
	var type = $('#type').val();
	var keywords = $('#keywords').val();
	location.href = "/search/index?type="+type+"&keywords="+keywords;
}
</script>
</head>
<body>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td width="1%" background="<?php echo SITE_URL?>/img/made/made_r1_c18.jpg">
			<img src="<?php echo SITE_URL?>img/made/made_r1_c2.jpg" width="9" height="53" />
		</td>
		<td width="15%" align="center" background="<?php echo SITE_URL?>/img/made/made_r1_c18.jpg">
			<img src="<?php echo SITE_URL?>img/made/made_r1_c5.jpg" width="87" height="53" />
		</td>
		<td width="37%" background="<?php echo SITE_URL?>img/made/made_r1_c18.jpg" class="indexdh">
			<a href="<?php echo SITE_URL?>">首页</a>&nbsp;&nbsp; |&nbsp;&nbsp; 
			<a href="/food/index">食</a>&nbsp;&nbsp; |&nbsp;&nbsp; 
			<a href="/scene/index">色</a>&nbsp;&nbsp; | &nbsp;&nbsp;
			<a href="/tong/index">聚</a>&nbsp;&nbsp; |&nbsp;&nbsp; 
			<a href="<?php echo SNS_URL?>">我</a>&nbsp;&nbsp; 
		</td>
		<td width="46%" background="<?php echo SITE_URL?>img/made/made_r1_c18.jpg">
			<?php if(!$_COOKIE['userid']):?>
				<form id="loginform" name="loginform" action="<?php echo SNS_URL.'/../do.php?ac=login&ref'?>" method="post">
				<span class="login">用户名：</span>
				<input name="username" type="text" class="textinfo" size="15" value="" />
				&nbsp;&nbsp;<span class="login">密码：</span>
				<input name="password" type="password" class="textinfo" size="15" value="" />
				<input type="hidden" name="refer" value="<?php echo SITE_URL.$_SERVER["REQUEST_URI"]?>" />
				<input type="submit" id="loginsubmit" name="loginsubmit" value="登录" class="submit" />
				<!--<span class="login">&nbsp;&nbsp;<a href="javascript:;" onclick="document.getElementById('loginform').submit()">登陆</a></span>&nbsp;&nbsp;-->
				<span class="login"><a href="<?php echo SNS_URL.'/../do.php?ac=register'?>">入会</a></span>
				</form>
			<?php else:?>
				<span class="login">客官&nbsp;&nbsp;<?php
					$uid = $_COOKIE['userid'];
					$loginUser = getUserById($uid);
					$groupId = $loginUser['groupid'];
				echo $_COOKIE['username']?>&nbsp;&nbsp;,欢迎你!&nbsp;&nbsp;你当前的等级为：<?php echo $loginUser['grouptitle']; ?>&nbsp;&nbsp;拥有积分:<?php echo $loginUser['credit']; ?>&nbsp;&nbsp;<a href="<?php echo SITE_URL.'sns/cp.php'?>">设置</a>&nbsp;&nbsp;<a href="<?php echo SITE_URL.'sns/space.php?uid='.$uid; ?>">我的空间</a>&nbsp;&nbsp;<a href="<?php echo SITE_URL.'sns/index.php'?>">个人中心</a>&nbsp;&nbsp; <a href="<?php echo SNS_URL.'/../cp.php?ac=common&op=logout';?>">退出登陆</a></span>
			<?php endif;?>
		</td>
		<td width="1%" align="right" background="<?php echo SITE_URL?>img/made/made_r1_c18.jpg">
			<img src="<?php echo SITE_URL?>img/made/made_r1_c22.jpg" width="11" height="53" />
		</td>
	</tr>
</table>

<table width="200" height="5" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="1%" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg">
		<img src="<?php echo SITE_URL?>img/made/made_r3_c2.jpg" width="9" height="57" />
	</td>
    <td width="44%" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg">
		<span class="word">您当前所在的位置：</span>
		<span class="yh"><a href="<?php echo SITE_URL?>">首页</a></span>
		<span class="word">&gt;&gt;</span>
		<span class="yh">
		<?php 
			if($module == 'scene' && $action == 'index'){
				echo "色首页";
			}elseif ($module == 'scene' && $action == 'intro'){
				echo "<a href='/scene/index'>色首页</a><span class='word'>&gt;&gt;</span>".$scene->getName();
			}elseif ($module == 'scene' && $action == 'food'){
				echo "<a href='/scene/intro?id=".$scene->getId()."'>".$scene->getName()."</a><span class='word'>&gt;&gt;</span>美食";
			}elseif ($module == 'scene' && $action == 'img'){
				echo "<a href='/scene/index'>色首页</a><span class='word'>&gt;&gt;</span>相册";
			}elseif ($module == 'scene' && $action == 'detail'){
				echo "<a href='/scene/index'>色首页</a><span class='word'>&gt;&gt;</span>".$sInfo->getName();
			}elseif ($module == 'eatery' && $action == 'index'){
				echo $eatery->getName();
			}elseif ($module == 'food' && $action == 'index'){
				echo "食首页";
			}elseif ($module == 'food' && $action == 'method'){
				echo "<a href='/food/index'>食首页</a><span class='word'>&gt;&gt;</span>".$food->getName();
			}elseif ($module == 'food' && $action == 'intro'){
				echo "<a href='/food/index'>食首页</a><span class='word'>&gt;&gt;</span>".$foodInfo->getName();
			}elseif ($module == 'Line' && $action == 'intro'){
				echo $lineInfo->getStart().'->'.$lineInfo->getEnd();
			}elseif ($module == 'Line' && $action == 'index'){
				echo $lineInfo->getStart().'->'.$lineInfo->getEnd();
			}
		?>
		</span>
	</td>
    <td width="13%" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg">
		<span class="tit">我&nbsp;&nbsp;&nbsp; 搜： </span>
        <select name="type" id="type" class="textinfo">
          <option value="1">景区</option>
          <option value="2">美食</option>
          <option value="3">店铺</option>
        </select>
    </td>
    <td width="31%" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg">
		<input id="keywords" name="keywords" type="text" class="textinfo_h" value="请输入关键字" size="40" onclick="this.value=''"/>
	</td>
	<td width="10%" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg">
		<table width="47" height="31" border="0" cellpadding="0" cellspacing="0">
			<tr>
			  <td align="center" background="<?php echo SITE_URL?>img/anniu/an_r13_c8.gif" class="login" onclick="search()">搜</td>
			</tr>
		</table>
	</td>
    <td width="1%" align="right" background="<?php echo SITE_URL?>img/made/made_r3_c4.jpg">
		<img src="<?php echo SITE_URL?>img/made/made_r3_c22.jpg" width="15" height="57" />
	</td>
  </tr>
</table>

<?php echo $sf_data->getRaw('sf_content') ?>

</body>
</html>
